#!/bin/sh
redis-server /etc/redis.conf &
mysql_install_db --user=mysql
mysqld_safe --datadir='/var/lib/mysql' &
sleep 3
mysql -e "create user 'liuping'@'localhost' identified by 'Iron@gbl';"
mysql -e "grant all privileges on *.* to 'liuping'@'localhost';"
mysql -e "create user 'liuping'@'%' identified by 'Iron@gbl';"
mysql -e "grant all privileges on *.* to 'liuping'@'%';"
mysql -e "flush privileges;"
chown liuping:liuping /home/liuping
